/*
 * Package il.ac.biu.cs.grossmm.api.data
 * File UpdateType.java
 * 
 * This is a part of presence service framework API. 
 * See javadoc for more information.
 *  
 * Copyright (C) 2006 Grossmann Mark
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
 * MA  02110-1301, USA.
 */

package il.ac.biu.cs.grossmm.api.data;

/**
 * Elements of this enumerations represent the type of modification applied to a
 * data node in a context of event about change of the data tree which contains
 * this node.
 */
public enum UpdateType {
	/**
	 * Node values and structure of a node has not chaged, as well as values and
	 * structure of its subnodes, subnodes of these subnodes and so on has not
	 * chaged.
	 */
	UNCHANGED,

	/**
	 * Node values or structure of a node has chaged, or values or structure of
	 * one of its subnodes, or subnodes of these subnodes and so on has chaged
	 */
	CHANGED,

	/**
	 * The node has been added as a subnode to another node.
	 */
	ADDED,

	/**
	 * The node has been removed
	 */
	REMOVED;
}
